// 民警管理 -- 接口
import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'

// 行业分类-------------------
// 新增
const policeUserAdd = (params) => postAction('/police/user/add', params)

// 编辑
const policeUserEdit = (params) => postAction('/police/user/edit', params)

// 删除
const policeUserDelete = (params) => deleteAction('/police/user/delete', params)

// 机关所有民警
const findPoliceAgencyList = (params) => getAction('/police/user/find_police_agency_list', params)

// 辖区分页
const policejurisdictionPage = (params) => getAction('/police/jurisdiction/page', params)

export const getPolicejurisdictionList = (params) => getAction('/police/jurisdiction/list', params)

// 辅警
export const findAuxiliaryUserList = (params) => getAction('/police/auxiliary_user/find_auxiliary_user_list', params)
// 网格员
export const findGridUserList = (params) => getAction('/police/grid_user/find_grid_user_list', params)

export { policeUserAdd, policeUserEdit, policeUserDelete, findPoliceAgencyList, policejurisdictionPage }
